package com.tony.mindwarning.service.impl;

import com.tony.mindwarning.mpper.WarnMapper;
import com.tony.mindwarning.pojo.Product;
import com.tony.mindwarning.service.WarnService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: WarnServiceImpl
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/11/15:42
 * @Description:
 */
@Service
public class WarnServiceImpl implements WarnService {

    @Resource
    WarnMapper warnMapper;

    @Override
    public int totalCount() {
        return warnMapper.totalCount();
    }

    @Override
    public List<Product> getProductByPage(Map<String, Object> map) {
        return warnMapper.getProductByPage(map);
    }
}
